package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="BusinessHouse"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class BusinessHouse implements Serializable {

    /** identifier field */
    private Integer roomId;

    /** nullable persistent field */
    private String roomPlace;

    /** nullable persistent field */
    private String room;

    /** nullable persistent field */
    private String tenancyUnit;

    /** nullable persistent field */
    private String corporation;

    /** nullable persistent field */
    private String identityCard;

    /** nullable persistent field */
    private Double area;

    /** nullable persistent field */
    private Double rentFeeStd;

    /** nullable persistent field */
    private String rentDate;

    /** nullable persistent field */
    private String contractId;

    /** nullable persistent field */
    private String cancelDate;

    /** nullable persistent field */
    private String beginDate;

    /** nullable persistent field */
    private String endDate;

    /** nullable persistent field */
    private String tel;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** nullable persistent field */
    private String assoId;

    /** full constructor */
    public BusinessHouse(String roomPlace, String room, String tenancyUnit, String corporation, String identityCard, Double area, Double rentFeeStd, String rentDate, String contractId, String cancelDate, String beginDate, String endDate, String tel, String userId, String latestDate, String remark, String assoId) {
        this.roomPlace = roomPlace;
        this.room = room;
        this.tenancyUnit = tenancyUnit;
        this.corporation = corporation;
        this.identityCard = identityCard;
        this.area = area;
        this.rentFeeStd = rentFeeStd;
        this.rentDate = rentDate;
        this.contractId = contractId;
        this.cancelDate = cancelDate;
        this.beginDate = beginDate;
        this.endDate = endDate;
        this.tel = tel;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
        this.assoId = assoId;
    }

    /** default constructor */
    public BusinessHouse() {
    }

    /** minimal constructor */
    public BusinessHouse(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="RoomId"
     *             unsaved-value="0"
     *         
     */
    public Integer getRoomId() {
        return this.roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    /** 
     *            @hibernate.property
     *             column="RoomPlace"
     *             length="50"
     *         
     */
    public String getRoomPlace() {
        return this.roomPlace;
    }

    public void setRoomPlace(String roomPlace) {
        this.roomPlace = roomPlace;
    }

    /** 
     *            @hibernate.property
     *             column="Room"
     *             length="50"
     *         
     */
    public String getRoom() {
        return this.room;
    }

    public void setRoom(String room) {
        this.room = room;
    }

    /** 
     *            @hibernate.property
     *             column="TenancyUnit"
     *             length="100"
     *         
     */
    public String getTenancyUnit() {
        return this.tenancyUnit;
    }

    public void setTenancyUnit(String tenancyUnit) {
        this.tenancyUnit = tenancyUnit;
    }

    /** 
     *            @hibernate.property
     *             column="Corporation"
     *             length="50"
     *         
     */
    public String getCorporation() {
        return this.corporation;
    }

    public void setCorporation(String corporation) {
        this.corporation = corporation;
    }

    /** 
     *            @hibernate.property
     *             column="IdentityCard"
     *             length="18"
     *         
     */
    public String getIdentityCard() {
        return this.identityCard;
    }

    public void setIdentityCard(String identityCard) {
        this.identityCard = identityCard;
    }

    /** 
     *            @hibernate.property
     *             column="Area"
     *             length="53"
     *         
     */
    public Double getArea() {
        return this.area;
    }

    public void setArea(Double area) {
        this.area = area;
    }

    /** 
     *            @hibernate.property
     *             column="RentFeeStd"
     *             length="53"
     *         
     */
    public Double getRentFeeStd() {
        return this.rentFeeStd;
    }

    public void setRentFeeStd(Double rentFeeStd) {
        this.rentFeeStd = rentFeeStd;
    }

    /** 
     *            @hibernate.property
     *             column="RentDate"
     *             length="23"
     *         
     */
    public String getRentDate() {
        return this.rentDate;
    }

    public void setRentDate(String rentDate) {
        this.rentDate = rentDate;
    }

    /** 
     *            @hibernate.property
     *             column="ContractId"
     *             length="50"
     *         
     */
    public String getContractId() {
        return this.contractId;
    }

    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    /** 
     *            @hibernate.property
     *             column="CancelDate"
     *             length="23"
     *         
     */
    public String getCancelDate() {
        return this.cancelDate;
    }

    public void setCancelDate(String cancelDate) {
        this.cancelDate = cancelDate;
    }

    /** 
     *            @hibernate.property
     *             column="BeginDate"
     *             length="23"
     *         
     */
    public String getBeginDate() {
        return this.beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    /** 
     *            @hibernate.property
     *             column="EndDate"
     *             length="23"
     *         
     */
    public String getEndDate() {
        return this.endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    /** 
     *            @hibernate.property
     *             column="Tel"
     *             length="40"
     *         
     */
    public String getTel() {
        return this.tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="200"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 
     *            @hibernate.property
     *             column="assoId"
     *             length="20"
     *         
     */
    public String getAssoId() {
        return this.assoId;
    }

    public void setAssoId(String assoId) {
        this.assoId = assoId;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("roomId", getRoomId())
            .toString();
    }

}
